import request from '@/utils/request'

// 查询商家企业认证列表
export function listCertification(query) {
  return request({
    url: '/system/certification/list',
    method: 'get',
    params: query
  })
}

// 查询商家企业认证详细
export function getCertification(id) {
  return request({
    url: '/system/certification/info?id=' + id,
    method: 'get'
  })
}

// 新增商家企业认证
export function addCertification(data) {
  return request({
    url: '/system/certification/add',
    method: 'post',
    data: data
  })
}

// 修改商家企业认证
export function updateCertification(data) {
  return request({
    url: '/system/certification/edit',
    method: 'put',
    data: data
  })
}

// 删除商家企业认证
export function delCertification(id) {
  return request({
    url: '/system/certification/delete/' + id,
    method: 'delete'
  })
}
